#!/usr/bin/env coffee

casper = require('casper').create()

casper.start 'http://casperjs.org/'
casper.then ->
  @echo 'First Page: ' + @getTitle()
  return

casper.thenOpen 'http://phantomjs.org', ->
  @echo 'Second Page: ' + @getTitle()
  return

casper.run()
